package org.example.service.impl;

import com.nowoe.core.annotation.Autowired;
import com.nowoe.mvc.annotation.Service;
import org.example.entity.User;
import org.example.mapper.UserMapper;
import org.example.service.UserService;

/**
 * @author 倚栏听风 2023/9/20 21:07
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUser(Integer id) {
        User user = new User();
        user.setId(id);
        return userMapper.getUser(user);
    }
}
